<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>湖北康正物业服务有限公司</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
<script type="text/javascript">

	function checkForm() {
		var districtId = document.getElementById("districtId").value;
		var name = document.getElementById("name").value;
				
		if (districtId == 0) {
			alert("请输入管理区编号！");
			return false;
		}
		if (name == 0) {
			alert("请输入管理区名称！");
			return false;
		}
	}
</script>
</head>
<body>
  <html:form action="district.do?method=updateSave" method="post" onsubmit="return checkForm();">
  <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
  <html:hidden property="id" value="${district.id}" />
    <tr>
      <td class="STYLE4" colspan="2" height="30" align="center" bgcolor="#ffffff">修改物业服务处信息</td>
    </tr>
    <tr>
      <td width="230" height="26" align="right" bgcolor="#ffffff">物业服务处编号:</td>
      <td bgcolor="#ffffff">&nbsp;<html:text property="districtId" value="${district.districtId }"/><font color="red">${districtIdError }${districtIdRequest }</font></td>
    </tr>
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">物业服务处名称:</td>
      <td bgcolor="#ffffff">&nbsp;<html:text property="name" value="${district.name }"/>
      &nbsp;<html:submit value="修改" />&nbsp;<html:reset value="重置" /><font color="red">${districtNameError }</font>
      </td>
    </tr>
  </table>
  </html:form>
</body>
</html>